<?php 
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');?>


<div class="pad-lr-10">

<fieldset>
	<legend>领取优惠券</legend>
	<form method="post" action="?m=iappCoupons&c=manages&a=lave&&catid=<?php echo $r['catid']?>&couponsid=<?php echo $_GET[couponsid];?>&menuid=<?php echo $_GET['menuid']?>">
<table width="100%" cellpadding="0" cellspacing="1" class="table_form">

	<tr>
		<th width="100">手机号：</th>
		<td><input type="text" name="mobile" id="mobile"
			size="50" value="" class="input-text">
			</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>
		<input type="submit" name="dosubmit" id="dosubmit" value=" <?php echo L('提交')?>" class="button">&nbsp;<input type="reset" value=" <?php echo L('重写')?> " class="button"></td>
	</tr>
</table>
</form>
</fieldset>
<div class="bk15"></div>
<fieldset>
	<legend>领取用户</legend>
	<div class="table-list">
	 <table width="100%" cellspacing="0">
        <thead>
            <tr>
			<th width="30" align="center">ID</th>
			<th width="100" align="center">手机</th>
			<th width="60">密码</th>
			<th width="60">领取时间</th>
			<th width="60" align="center">是否消费</th>
			<th width="60" align="center">消费时间</th>
			<th align="center">短信内容</th>
			
            </tr>
        </thead>
    <tbody>
 <?php 
if(is_array($data)){
	foreach($data as $r){
?>   
	<tr>

	<td align="center"><?php echo $r['id'];?></td>
	<td ><?php echo $r['mobile'];?></td>
	<td ><?php echo $r['pwd'];?></td>
	<td ><?php echo date('Y-m-d', $r['timeApply']);?></td>
	<td align="center"><?php echo $r['isConsume'];?></td>
	<td ><?php echo date('Y-m-d', $r['timeConsume']);?></td>
	<td ><input type="text" size="40" value="<?php echo $r['msg'];?>" class="input-text" />
	</td>

	</tr>
<?php 
	}
}
?>
</tbody>
    </table>
	</div>
</fieldset>

</body>
</html>